package cn.itcast.spring.demo4;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.itcast.spring.demo2.service.AccountService;
import cn.itcast.spring.demo3.service.AccountService2;
import cn.itcast.spring.demo4.service.AccountService3;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(value="classpath:applicationContext3.xml")
public class AccountTransferTest3 {

	@Autowired
	private AccountService3 accountService3;
	
	
	@Test
	public void transferMoney() throws Exception {
		accountService3.transferMoney("张三" ,"李四" ,1000d);
	}
	
	
	
	
	
	

}
